var n, dialog_filtered_chars, dialog_string;

dialog_filtered_chars[0] = "@";
dialog_filtered_chars[1] = "|";
dialog_string = argument[0];

for (n = 0; n < array_length_1d(dialog_filtered_chars); n++)
{
    dialog_string = string_replace_all(dialog_string, dialog_filtered_chars[n], "");
}

return (dialog_string);
